package com.jgsu.sell.service.impl;

import com.jgsu.sell.dataobject.SellerInfo;
import com.jgsu.sell.repository.SellInfoRepository;
import com.jgsu.sell.service.SellerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 描述:
 * 卖家
 *
 * @author lqd12
 * @create 2018-09-16 22:28
 */
@Slf4j
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellInfoRepository repository;

    @Override
    public SellerInfo findSellerInfoByOpenId(String openid) {
        return repository.findByOpenid(openid);
    }
}